import { UserEntity } from '@/api/create/interface'
import { VmpMemberEntity } from '../interface'
export type StyleData = {
	id: number
	className: string
	listItemCount: number
	dataKey: string
	order?: number[]
	isOldHide?: boolean
}
export const allVmpStyleData: StyleData[] = [
	{
		id: 1,
		className: 'one',
		dataKey: 'one',
		listItemCount: 1,
	},
	{
		id: 2,
		className: 'two_a',
		dataKey: 'vtwo',
		listItemCount: 2,
	},
	{
		id: 3,
		className: 'two_b',
		dataKey: 'vtwo_b',
		listItemCount: 2,
	},
	{
		id: 61,
		className: 'two_c',
		dataKey: 'vtwo_c',
		listItemCount: 2,
	},
	{
		id: 63,
		className: 'two_d',
		dataKey: 'vtwo_d',
		listItemCount: 2,
	},
	{
		id: 62,
		className: 'two_e',
		dataKey: 'vtwo_e',
		listItemCount: 2,
	},
	{
		id: 4,
		className: 'three_a',
		dataKey: 'three_t',
		listItemCount: 3,
	},
	{
		id: 23,
		className: 'three_b',
		dataKey: 'three',
		listItemCount: 3,
	},
	{
		id: 22,
		className: 'three_c',
		dataKey: 'three_lr',
		listItemCount: 3,
	},
	{
		id: 5,
		className: 'four_a',
		dataKey: 'four',
		listItemCount: 4,
	},
	{
		id: 26,
		className: 'four_b',
		dataKey: 'four_t',
		listItemCount: 4,
		isOldHide: true,
	},
	{
		id: 12,
		className: 'four_c',
		dataKey: 'four_lr',
		listItemCount: 4,
		isOldHide: true,
	},
	{
		id: 35,
		className: 'five_a',
		dataKey: 'five',
		listItemCount: 5,
	},
	{
		id: 34,
		className: 'five_b',
		dataKey: 'five_a',
		listItemCount: 5,
		isOldHide: true,
	},
	{
		id: 6,
		className: 'six_a',
		dataKey: 'six_lt',
		listItemCount: 6,
		order: [1, 2, 3, 6, 5, 4],
	},
	{
		id: 64,
		className: 'six_b',
		dataKey: 'six_a',
		listItemCount: 6,
		isOldHide: true,
	},
	{
		id: 13,
		className: 'seven',
		dataKey: 'seven',
		listItemCount: 7,
	},
	{
		id: 7,
		className: 'eight',
		dataKey: 'eight_lt',
		listItemCount: 8,
		order: [1, 2, 3, 4, 8, 7, 6, 5],
	},
	{
		id: 8,
		className: 'nine',
		dataKey: 'nine',
		listItemCount: 9,
	},
	{
		id: 18,
		className: 'ten',
		dataKey: 'ten',
		listItemCount: 10,
		order: [3, 4, 5, 6, 1, 2, 7, 8, 9, 10],
	},
	{
		id: 38,
		className: 'eleven_a',
		dataKey: 'eleven',
		listItemCount: 11,
	},
	{
		id: 65,
		className: 'eleven_b',
		dataKey: 'eleven_a',
		listItemCount: 11,
		isOldHide: true,
	},
	{
		id: 39,
		className: 'twelve_a',
		dataKey: 'twelve',
		listItemCount: 12,
	},
	{
		id: 66,
		className: 'twelve_b',
		dataKey: 'twelve_a',
		listItemCount: 12,
		isOldHide: true,
	},
	{
		id: 19,
		className: 'thirteen',
		dataKey: 'thirteen_m',
		listItemCount: 13,
		order: [2, 3, 4, 5, 6, 8, 1, 7, 9, 10, 11, 12, 13],
	},
	{
		id: 17,
		className: 'fourteen',
		dataKey: 'fourteen',
		listItemCount: 14,
	},
	{
		id: 20,
		className: 'fifteen_a',
		dataKey: 'fifteen',
		listItemCount: 15,
	},
	{
		id: 67,
		className: 'fifteen_b',
		dataKey: 'fifteen_a',
		listItemCount: 15,
		isOldHide: true,
	},
	{
		id: 11,
		className: 'sixteen',
		dataKey: 'sixteen',
		listItemCount: 16,
	},
	{
		id: 46,
		className: 'seventeen',
		dataKey: 'seventeen',
		listItemCount: 17,
	},
	{
		id: 48,
		className: 'eighteen',
		dataKey: 'eighteen',
		listItemCount: 18,
		order: [7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 13, 14, 15, 16, 17, 18],
	},
	{
		id: 51,
		className: 'nineteen',
		dataKey: 'nineteen',
		listItemCount: 19,
	},
	{
		id: 14,
		className: 'twenty',
		dataKey: 'twenty',
		listItemCount: 20,
	},
	{
		id: 54,
		className: 'twenty_one',
		dataKey: 'twenty_one',
		listItemCount: 21,
		order: [2, 3, 4, 5, 6, 7, 8, 10, 12, 14, 1, 9, 11, 13, 15, 16, 17, 18, 19, 20, 21],
	},
	{
		id: 56,
		className: 'twenty_two',
		dataKey: 'twenty_two',
		listItemCount: 22,
	},
	{
		id: 59,
		className: 'twenty_four',
		dataKey: 'twenty_four',
		listItemCount: 24,
		order: [5, 6, 7, 8, 9, 10, 11, 13, 1, 2, 12, 14, 15, 17, 3, 4, 16, 18, 19, 20, 21, 22, 23, 24],
	},
	{
		id: 27,
		className: 'twenty_five',
		dataKey: 'twenty_five',
		listItemCount: 25,
	},
]
//区分新旧风格(暂不区分)
export const vmpStyleData: StyleData[] = true ? allVmpStyleData : allVmpStyleData.filter((item) => !item.isOldHide)
export let initData = { account: '', account_type: undefined, chn_idx: 0, name: '', member_type: 0 }
export interface ViewRef {
	getValue: () => Array<VmpMemberEntity>
	getStyle: () => number
}
